//
// Created by Zhangwj on 2023/9/26.
//

#ifndef COMPILE_TASK2_BLOCKITEMNODE_H
#define COMPILE_TASK2_BLOCKITEMNODE_H


#include "SyntaxTreeNode.h"
#include "../Parser.h"
#include "StmtNode.h"

class BlockItemNode : public SyntaxTreeNode {
public:
    //BlockItem → Decl | Stmt
    std::unique_ptr<DeclNode> Decl;
    std::unique_ptr<StmtNode> Stmt;

    static std::unique_ptr<BlockItemNode> BlockItemParser(Parser &parser);
};


#endif //COMPILE_TASK2_BLOCKITEMNODE_H
